package com.jwdf.uda.event;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.utils.EventBusUtil;

/**
 * Created by Administrator on 2016/9/5.
 */
public class NewAnswerEvent implements EventBusUtil.IEvent {
    public static final int EVENT_COMMENT_SAVE = 0x1;//执行保存事件
    public static final int EVENT_COMMENT_PUBLISHED = 0x2;//用户点击发表按钮
    public static final int EVENT_COMMENT_VOTE = 0x3;//投票信息
    public static final int EVENT_COMMENT_SUBMIT = 0x4;//编辑完成   问题详情接收这个事件
    public static final int EVENT_COMMENT_RELEASE = 0x5;//新增问题完成  问答列表 刷新 接收事件
    public static final int EVENT_COMMENT_DELETE = 0x6;//新增问题完成  问答列表 刷新 接收事件
    private int event;
    private PbBean.PbSignBaseVoteOptionType vote;
    public NewAnswerEvent(int event) {
        this.event = event;
    }
    public NewAnswerEvent(int event, PbBean.PbSignBaseVoteOptionType vote) {
        this.event = event;
        this.vote = vote;
    }
    public int getEvent() {
        return event;
    }

    public PbBean.PbSignBaseVoteOptionType getVote() {
        return vote;
    }
}
